﻿using System;

namespace Topro.Application.Interface
{
    using Topro.Entity;
    using Topro.Entity.Query;
    using Topro.Entity.Request.Command;
    using Topro.Entity.Response.Command;

    /// <summary>
    /// 指令业务接口
    /// </summary>
    public interface CommandService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        DataGrid<CommandQueryResponse> CommandQuery(CommandQuery query);

        /// <summary>
        /// 保存、修改
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        JResult Save(CommandSaveRequest request);
    }
}
